home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 138
/
Volume 138 Aug 19 2011 - Damaged.iso
/
Games
/
guardian_angel.swf
/
scripts
/
DefineSprite_195
/
frame_3
/
DoAction.as
Wrap
Text File
|
2011-08-19
|
1KB
|
46 lines
tellTarget("../")
{
play();
}
xbus = getProperty("../", _X) + _X * getProperty("../", _yscale) / "100";
ybus = getProperty("../", _Y) + _Y * getProperty("../", _yscale) / "100";
if(ybus - "20" < eval("../../:laufy") and eval("../../:laufy") < ybus + "40")
{
if(eval("../../:laufx") < xbus + "60" and xbus < eval("../../:laufx"))
{
set("../../:xcontact","1");
if(eval("../../:protect") < "0")
{
set("../../:death","1");
}
set("../../:aufprall","2");
}
if(xbus >= eval("../../:laufx") and xbus - "60" < eval("../../:laufx"))
{
set("../../:xcontact","2");
if(eval("../../:protect") < "0")
{
set("../../:death","1");
}
set("../../:aufprall","2");
}
}
if(xbus - "50" < eval("../../:laufx") and eval("../../:laufx") < xbus + "50")
{
if(ybus - "50" < eval("../../:laufy") and ybus + "30" >= eval("../../:laufy"))
{
set("../../:stepy",- "2");
set("../../:fallen","0");
set("../../:aufprall","1");
gotoAndStop(5);
}
}
if(eval("../../:laufx") < xbus - "300" or xbus + "300" < eval("../../:laufx"))
{
gotoAndPlay(1);
}
if(ybus + "300" < eval("../../:laufy") or eval("../../:laufy") < ybus - "300")
{
gotoAndPlay(1);
}